package org.zk.dubbo_provider.service.impl;



import org.zk.dubbo_provider.dao.StudyMapper;
import org.zk.entity.Study;
import org.zk.service.StudyService;
import com.alibaba.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
@Service(timeout = 10000)
public class StudyServiceImpl   implements StudyService {

    @Resource
    StudyMapper studyMapper;
    //gs 2019-12-18 下单成功插入一条学习记录
    @Override
    public void createStudy(Study study) {
        studyMapper.createStudy(study);
    }

    @Override
    public List<Study> getAllStudy() {
        return studyMapper.getAllStudy();
    }
}
